package com.tgh.gles2.c7.multisample;

import com.tgh.gles2.ControlPanelRendererActivity;

import android.os.Bundle;

public class GLActivity extends ControlPanelRendererActivity {

    private MultiSampleRenderer mRenderer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mRenderer = new MultiSampleRenderer(this);
        mRenderer.setSurfaceView(mSurfaceView);
        setRenderer(mRenderer);
    }
    
    @Override
    protected void onPressRight() {
        mRenderer.right();
    }

    @Override
    protected void onPressLeft() {
        mRenderer.left();
    }

    @Override
    protected void onPressUp() {
        mRenderer.up();        
    }

    @Override
    protected void onPressDown() {
        mRenderer.down();
    }
}
